/*
 * @Author: 生俊甫 1758142861@qq.com
 * @Date: 2024-10-07 17:30:46
 * @LastEditors: 生俊甫 1758142861@qq.com
 * @LastEditTime: 2024-10-07 17:41:47
 * @FilePath: /sjf/2024-project/2024_centos/test_to_c/stack_and_queue/queue_test.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <stdbool.h>

typedef int QDataType;

//队列中元素定义
typedef struct node
{
    QDataType _data;
    struct node* _next;
}node;

//队列
typedef struct queue
{
    node* _head;
    node* _tail;
}queue;

void queue_init(queue* q);
void queue_destory(queue* q);